home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -in_the_mag- / reader_requests / dice_v3.15 / lib / amigalib / createstdio.c < prev    next >
C/C++ Source or Header  |  1999-01-26  |  879b  |  45 lines

  1.  
  2. /*
  3.  *  CreateStdIO.C   (1.3/2.0) (for 2.0 only apps use CreateIORequest())
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  *
  9.  */
  10.  
  11. #include <exec/types.h>
  12. #include <exec/ports.h>
  13. #include <exec/memory.h>
  14. #include <exec/io.h>
  15. #ifdef INCLUDE_VERSION        /*    2.0 */
  16. #include <clib/exec_protos.h>
  17. #include <clib/alib_protos.h>
  18. #else
  19. extern void *CreateExtIO(void *, long);
  20. extern void DeleteExtIO(void *);
  21. #endif
  22.  
  23. typedef struct MsgPort    MsgPort;
  24. typedef struct IORequest IORequest;
  25. typedef struct IOStdReq  IOStdReq;
  26.  
  27. #ifndef HYPER
  28. #define HYPER
  29. #endif
  30.  
  31. IOStdReq *
  32. HYPER ## CreateStdIO(replyPort)
  33. MsgPort *replyPort;
  34. {
  35.     return((IOStdReq *)CreateExtIO(replyPort, sizeof(IOStdReq)));
  36. }
  37.  
  38. void
  39. DeleteStdIO(io)
  40. IOStdReq *io;
  41. {
  42.     DeleteExtIO((IORequest *)io);
  43. }
  44.  
  45.